import Vue from 'vue';
import { YhResponseData, AxiosFun } from '@yhfin/biz';
import Axios, { downLoadFile } from '@/utils/request';
import {InvestMentReq} from '../model/InvestMentReq';
import {UploadFile} from '../model/UploadFile';

export default class InvestmentService extends Vue {
    public pageQuery(req:InvestMentReq): Promise<any> {
        return this.$axios.post(`/investMent/query`, req);
    }

    public impoertExcel(formData:FormData): Promise<UploadFile[]> {
        return this.$axios.post(`/investMent/impoertExcel`, formData);
    }

    public delete(req:InvestMentReq): Promise<any> {
        return this.$axios.post(`/investMent/delete`, req);
    }

    public operateByUser(req:InvestMentReq): Promise<any> {
        return this.$axios.post(`/investMent/operateByUser`, req);
    }

    public export(req:InvestMentReq): Promise<any> {
        return this.$axios.post(`/investMent/export`, req);
    }

    public excelRollback(): Promise<any> {
        return this.$axios.post(`/investMent/excelRollback`);
    }

    public confirm(): Promise<any> {
        return this.$axios.post(`/investMent/confirm`);
    }
}
